<?php
class BpcCurrent extends BpcHtml{

function Process(){
	if ( $_POST['login'] ){
		$nom = $this->post($nom);
		$mdp = $this->post($mdp);
		$stay = $this->post($stay);
	}
}

function Fill(){
	$h2 = new BphItemBox('h2');
	$h2->AddItems(LNG_LOGIN);
	$this->AddItems($h2);
	$form = new BphForm('?mode=login','post');
	$fieldset= new BphFieldSet(LNG_AUTHENTIFICATION);
	$text = new BphFieldText('nom', '', LNG_UTILISATEUR);
	$pass = new BphFieldPass('mdp', '', LNG_MOTDEPASSE);
	$stay = new BphFieldCheck('stay', False, LNG_STAY);
	$submit = new BphFieldSubmit('login', LNG_SEND, ' ');
	$fieldset->AddItems ( $text, $pass, $stay, $submit );
	$form->AddItems($fieldset);
	$this->AddItems($form);
}

}
?>
